import React from "react";
import { HashRouter, Route,Switch,Link} from "react-router-dom"

import MyHeader from "./app/MyHeader"
import Fortune from "./app/Fortune"
import NotPage from "./app/NotPage"
import Matching from "./app/Matching"
import {AppContext} from "./app/context/index"
import {CONSTLLATION} from "@/assets/utils/constant";
function App() {
    return(
        <HashRouter>
            <MyHeader></MyHeader>
            <AppContext.Provider value={CONSTLLATION}>
                <Switch>
                    <Route path="/" exact  component={ Fortune }></Route>
                    <Route path="/index"   component={ Fortune }></Route>
                    <Route path="/matching" component={ Matching}></Route>
                    <Route  component={ NotPage }></Route>
                </Switch>
            </AppContext.Provider>
        </HashRouter>
    )
}

export default App